package com.hsteach.dao.mapper.cookmenu;

import java.util.List;
import com.hsteach.dao.domain.cookmenu.CookmenuWeek;
import org.apache.ibatis.annotations.Param;

/**
 * 食堂每周菜谱明细Mapper接口
 * 
 * @author fanxquer
 * @date 2023-11-05
 */
public interface CookmenuWeekMapper 
{
    /**
     * 查询食堂每周菜谱明细
     * 
     * @param id 食堂每周菜谱明细主键
     * @return 食堂每周菜谱明细
     */
    public CookmenuWeek selectCookmenuWeekById(Long id);

    /**
     * 查询食堂每周菜谱明细列表
     * 
     * @param cookmenuWeek 食堂每周菜谱明细
     * @return 食堂每周菜谱明细集合
     */
    public List<CookmenuWeek> selectCookmenuWeekList(CookmenuWeek cookmenuWeek);

    /**
     * 新增食堂每周菜谱明细
     * 
     * @param cookmenuWeek 食堂每周菜谱明细
     * @return 结果
     */
    public int insertCookmenuWeek(CookmenuWeek cookmenuWeek);

    public int batchInsert(List<CookmenuWeek> cookmenuWeeks);

    /**
     * 修改食堂每周菜谱明细
     * 
     * @param cookmenuWeek 食堂每周菜谱明细
     * @return 结果
     */
    public int updateCookmenuWeek(CookmenuWeek cookmenuWeek);

    /**
     * 删除食堂每周菜谱明细
     * 
     * @param id 食堂每周菜谱明细主键
     * @return 结果
     */
    public int deleteCookmenuWeekById(Long id);

    /**
     * 批量删除食堂每周菜谱明细
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteCookmenuWeekByIds(Long[] ids);

    public int deleteByWeekAndSemId(@Param("weeks") List<Integer> weeks, @Param("semId") String semId, @Param("orgCode") String orgCode);
}
